cssstylechange: Fix change printing
authorTimm Bäder <mail@baedert.org>
Sat, 22 Jul 2017 07:22:56 +0000 (09:22 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 22 Jul 2017 17:36:05 +0000 (19:36 +0200)
Only print the old value once, above the new one.

gtk/gtkcssstylechange.c

index 400dfe8418d75da51e152ff5e71d41d9a9ecd30d..00a68021448e72f8b5083836ef90a6b6ddce9d47 100644 (file)
@@ -129,10 +129,8 @@ gtk_css_style_change_print (GtkCssStyleChange *change,
           prop = _gtk_css_style_property_lookup_by_id (i);
           name = _gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop));
 
-          value = gtk_css_style_get_value (old, i);
-          _gtk_css_value_print (value, string);
-
           g_string_append_printf (string, "%s: ", name);
+          value = gtk_css_style_get_value (old, i);
           _gtk_css_value_print (value, string);
           g_string_append (string, "\n");